<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/SSM/js/layui/css/layui.css"  media="all">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<a href="/SSM/user/addUser">新增</a>
	<table class="layui-table">
		<colgroup>
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
			<col width="150">
			<col>
		</colgroup>
		<thead>
			<tr>
				<th>用户编号</th>
				<th>账号</th>
				<th>密码</th>
				<th>生日</th>
				<th>姓名</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${userList }" var="user">
				<tr>
					<td>${user.id }</td>
					<td>${user.acc }</td>
					<td>${user.pwd }</td>
					<td><fmt:formatDate value="${user.birthday }"
							pattern="yyyy-MM-dd" /></td>
					<td>${user.name1 }</td>
					<td>
					<a href="/SSM/user/updateDepart?id=${user.id }">修改</a>
					<a href="/SSM/user/deleteUser?id=${user.id }">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
		
		<tr></tr>
		
	</table>

</body>
</html>